#ifndef COLLISION_H
#define COLLISION_H

#include <cmath>
#include <algorithm>
#include <limits>

class Box
{
private:
	
	
public:
	float x, y;
	float w, h;
	float vx, vy;
	Box(float _x, float _y, float _w, float _h, float _vx, float _vy);
	Box(float _x, float _y, float _w, float _h);
};

class Collision
{
public:
	static Box GetSweptBroadphaseBox(Box b);
	static Box *getSweptBroadphaseBox(Box *b);
	static bool AABBCheck(Box b1, Box b2);
	static bool RectVsRect(Box b1, Box b2);
	static float SweptAABB(Box b1, Box b2, float &normalx, float &normaly);
	static bool Deflect(Box b1, Box b2);

};

#endif